import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity('workposts')
export class Workpost {
  @PrimaryGeneratedColumn()
  workPostId: number;

  @Column()
  workPostName: string;

  @Column()
  workPostNum: string;

  @Column()
  departmentId: number;

  @Column({
    nullable: true
  })
  departmentName: string;

  @Column()
  description: string;

  @Column()
  updateTime: Date;
}

